package com.sxjh.entity.bo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * 液碱查询对象
 */
@Data
public class Finance9List7Bo {

  /**
   * 物料名称
   */
  private String materialName;
  private String carNumber;


  /**
   * 公司名称
   */
  private String companyName;

  /**
   * 税率单位
   */
  private BigDecimal taxRate;

  // 实收数量
  private BigDecimal netWeight;

  /**
   * 原发数量
   */
  private BigDecimal weighbridgeWeight;

  /**
   * 质检结果
   */
  private String result;

  /**
   * 结算单价
   */
  private BigDecimal settlementPrice;
  private LocalDate factoryOutTime;
  /**
   * 车牌号
   */
  private String plateNumber;
  public BigDecimal getWeighbridgeWeight() {
    if("".equals(weighbridgeWeight)||weighbridgeWeight==null){
      return new BigDecimal(0);//去除该属性的前后空格并进行非空非null判断
    }
    return weighbridgeWeight;
  }
}
